package org.jeecg.modules.wlhy.utils;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.RandomUtil;
import org.apache.commons.lang.StringUtils;
import org.jeecg.common.util.DateUtils;
import org.jeecg.modules.paycenter.enums.UTypeEnum;
import org.jeecg.modules.wlhy.complaint.service.IHyComplaintService;
import org.jeecg.modules.wlhy.hyvehicle.entity.HyVehicle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class VehicleUtil {


    /**
     * 检查车辆 数据类型是否正确
     * @return
     */
    public static Boolean checkVehicle(HyVehicle hyVehiclDb){

        if(hyVehiclDb==null){
            return false;
        }

        if( !StringUtils.isNumeric(hyVehiclDb.getVehicleLong())){
            return false;
        }
        if( !StringUtils.isNumeric(hyVehiclDb.getVehicleWidth())){
            return false;
        }
        if( !StringUtils.isNumeric(hyVehiclDb.getVehicleHeight())){
            return false;
        }

        return true;
    }

}
